package com.qf.voterabbitmqcustomer.vo;

import java.util.HashMap;

/**
 * @author 刘欣
 * @createTime 2023/3/2 15:09
 * @description
 */
public class ResultVo extends HashMap {

    public static ResultVo ok() {
        ResultVo resultVo = new ResultVo();
        resultVo.put("code", 1);
        resultVo.put("msg", "ok");
        return resultVo;
    }


    public static ResultVo error(String msg) {
        ResultVo resultVo = new ResultVo();
        resultVo.put("code", 1);
        resultVo.put("msg", msg);
        return resultVo;
    }
}
